<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .wrapper {
            width: 200px;
            height: 200px;
            border: 1px solid #ccc;
        }
        .box {
            /* display: inline-block; */
            position: relative;
            height: 300px;
            width: 100px;
            background-color: red;
        }
        .test {
            position: relative;
            width: 100px;
            height: 100px;
            background-color: red;
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <a class="box">123123</a>
    </div>
    <a href="" class="test">qweqwe</a>
    <!-- 相对定位后不设置display:inline-block还是其自己的属性 -->
</body>
</html>